﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class AjaxPage_ajax_dialog_smsun :FBasePage
{
    // Fields
    public string strMobile = "";

    // Methods
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        if (!this.Page.IsPostBack)
        {
            string name = base.User.Identity.Name;
            Maticsoft.BLL.UserInfo info = new Maticsoft.BLL.UserInfo();
            string strWhere = "";
            strWhere = string.Format(" Username='{0}'", name);
            DataSet list = info.GetList(strWhere);
            if ((list.Tables.Count > 0) && (list.Tables[0].Rows.Count > 0))
            {
                this.strMobile = list.Tables[0].Rows[0]["Mobile"].ToString();
            }
        }
    }

}